Ext.onReady(function() {
	//修改个人信息
	var info = Ext.get('updateinfo');
	var tel = Ext.get('telephone');
	var qq = Ext.get('qq');
	info.dom.onclick = function() {
		Ext.Ajax.request({
			url : 'a_updateInfo',
			params : {
				telephone : tel.dom.value,
				qq : qq.dom.value,
			},
			success : function(response) {
				var s = response.responseText;
				if(s == 'success') {
				   alert('修改成功！');
				   window.location = 'info';
				}
				else {
					alert('修改失败，请重试！');
				}
			},
			failure : function() {
				alert('failure');
			}
		});
	};
	
});